/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package dados.teste;

import dados.ComunicacaoBD;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Emanoel
 */
public class TestaComunicacaoDB {
    
    public static void main(String[] args){
        try {
            ResultSet rs = ComunicacaoBD.executarQuery("select * from aluno", "teste_banco");

            while (rs.next()) {
                System.out.println(rs.getString("nome"));
            }
        } catch (SQLException ex) {
            Logger.getLogger(TestaComunicacaoDB.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

}
